package br.unifor.g2cl.test;

import java.net.SocketAddress;

import net.sf.jgcs.ClosedSessionException;
import net.sf.jgcs.ControlListener;
import net.sf.jgcs.ControlSession;
import net.sf.jgcs.ExceptionListener;
import net.sf.jgcs.JGCSException;

public class SimpleControlSession implements ControlSession{

	public SocketAddress getLocalAddress() {
		return null;
	}

	public boolean isJoined() {
		return false;
	}

	public void join() throws ClosedSessionException, JGCSException {}

	public void leave() throws ClosedSessionException, JGCSException {}

	public void setControlListener(ControlListener listener) {
		this.controlListener = listener;
	}

	public void setExceptionListener(ExceptionListener exception)
			throws ClosedSessionException {}

	private ControlListener controlListener;
	
	public ControlListener getControlListener() {
		return controlListener;
	}

}
